﻿using SharpDX;
using SharpDX.Direct2D1;
using SharpDX.DirectWrite;

namespace FadeGameFramework
{
    public interface IRenderTarget
    {
        void Clear(Color color);

        void DrawText(string text, TextFormat textFormat, RectangleF rect, Brush brush);

        void DrawText(string text, string fontName, float fontSize, Color color,
            Vector2 position, float width = 100, float height = 100);

        void DrawBitmap(Bitmap bitmap, Size2F frameSize,
            Vector2 position, RectangleF srcRectangleF, float opacity = 1f);

        void DrawBitmap(Bitmap bitmap, Vector2 position, float opacity = 1f);

        void DrawSprite(Sprite sprite, float opacity = 1f);
    }
}